﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace DC2010.Objects.Common
{
    /// <summary>
    /// Thi class helps with set of pairs key - value. Where Key is telling us what kind of value is.
    /// </summary>
    [Serializable]
    public class KeyValue
    {
        /// <summary>
        /// When in collection of KeyValues one item should be Key="id"
        /// </summary>
        [XmlAttribute]
        public string Key { get; set; }

        [XmlAttribute]
        public string Value { get; set; }

        public KeyValue()
        { }

        public KeyValue(string key, string value)
        {
            Key = key;
            Value = value;
        }
    }
}
